<header class="header">
    <div class="container"><h1 class="logo"><a href="/"><img class="logo-img"src="/static/picture/logo.png" alt="{$site_title_simple}"/><span
            class="yia-hide">{$site_title_simple}</span></a></h1>
        <form method="get" action="/search" class="search-form">
            <i class="yiafa icon-search">&#xe8d8;</i>
            <input type="text" name="s" value="" placeholder="请输入关键词" class="search-input" required>
            <input type="submit" value="搜索" class="search-btn">
        </form>
        <i class="top-search yiafa icon-search" data-event="toggle_search">&#xe8d8;</i> <i class="yiafa icon-menu" data-event="toggle_top_menu">&#xe8d6;</i>
        <ul class="yia-top-menu">
            <li class="current-menu-item"><a href="/" aria-current="page">首页</a></li>
            <#list navList as n1>
            <li <#if n1.children?? && (n1.children?size > 0) >class="menu-item-has-children"</#if>>
            <a href="${n1.typeLink}">${n1.typeName}</a>
            <#if n1.children?? && (n1.children?size > 0) >
                <ul class="sub-menu">
                    <#list n1.children as n2>
                    <li><a href="${n2.typeLink}">${n2.typeName}</a></li>
                    </#list>
                </ul>
            </#if>
            </li>
            </#list>

        </ul>
    </div>
</header>